using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using SMB.Data.PulseGS;

namespace SMBERP.GS.UserControl
{
    public partial class ucGSInfoAddDetailView : System.Web.UI.UserControl
    {
        //public string DocID
        //{
        //    get { return (ViewState["DocID"] == null) ? "" : ViewState["DocID"].ToString(); }
        //    set 
        //    { 
        //        ViewState["DocID"] = value;
        //        Display(value);
        //    }
        //}
        //GSAdd A;
        //protected void Page_Load(object sender, EventArgs e)
        //{

        //}
        //public void InitControl(string xDocID)
        //{
        //    Display(xDocID);
        //}
        //protected void Display(string xDocID)
        //{
        //    A = GSManager.getAddPaper(xDocID); 
        //    GridView1.DataSource = A.Items;
        //    GridView1.DataBind();
        //}
        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            //if (e.Row.RowType == DataControlRowType.DataRow)
            //{
            //    int rowid = e.Row.DataItemIndex;
            //    ucGSInfoView UcGSInfoView1 = (ucGSInfoView)e.Row.FindControl("UcGSInfoView1");
            //    DataRow r = A.Items.Rows[e.Row.DataItemIndex];
            //    GSAdd.Item itm = new GSAdd.Item(r);
            //    UcGSInfoView1.Display(itm);

            //}
        }
    }
}